package com.ztc.common.wechatpay.model;

import com.ztc.common.util.OrderUtil;

/**
 * 微信公共参数
 */
public class GlobalParameter {
    //微信开放平台审核通过的应用APPID
    private String appId;
    //微信支付分配的商户号
    private String mchId;
    //随机字符串，不长于32位
    private final String nonceStr = OrderUtil.createNoncestr();
    //通过签名算法计算得出的签名值
    private String sign;
    //商户平台设置的密钥key
    private String partnerKey;

    public String getAppId() {
        return appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getPartnerKey() {
        return partnerKey;
    }

    public void setPartnerKey(String partnerKey) {
        this.partnerKey = partnerKey;
    }
}
